package lab5Source;

public class S_MakeLadySmallerCommand extends S_MakeLadyBiggerCommand {	
	public S_MakeLadySmallerCommand(LadyBird lady) {
		super(lady);		
	}

	@Override
	public void Execute() {
		int size = (int) Math.round(lady.getSize() * 1/factor);
		this.setThemAllNewSize(size);
	}

	@Override
	public void Unexecute() {
		int size = (int) Math.round(lady.getSize() * factor);
		this.setThemAllNewSize(size);
	}

}
